<%--
    fileName      : /exceptionanalyse/cfsexceptio.jsp
    author        : user
    createDate    : 2017-02-23  
    lastModifier  : user
    lastModifyDate: 2017-02-23       
    description   : 列表页面
--%>
<%@ page language='java' contentType='text/html; charset=UTF-8' pageEncoding='UTF-8' %>
<%@ taglib uri='ctp-tag' prefix='ctp' %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
    <head>
        <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
        <title></title>

        <ctp:include items='public,ajaxfileupload,grid,validator,borderlayout,panel,form,button,groupbox,gridlayout,label,textfield,combobox,link,checkboxgroup,checkbox,textarea,datepicker,checkbox,chain,message_ex,ajaxtree'/>

        <script type='text/javascript' kind='variant'>

            var borderlayout1;
            var queryPanel;
            var queryForm;
            var queryGroupbox;    //问题信息
            var queryGridlayout;     
            var id; //主键
            var phone; //用户电话
            var time; //发生时间
            var version; //APP版本
            var machine; //设备机型
            var stack; //出错堆栈
            var system; //操作系统1 IOS 2 Android
            var systemversion; //系统版本
            var validator5;
            var goBack;		      //返回
            var submit;		      //提交
            var reset;	     	  //重置
            var modify;
            var modifyURL='';
            var flag;			  //新增修改标识
            var v_cfsexceptioId = "";
        </script>
        <script type='text/javascript' kind='event'>
	        /*
	         * @method initData
	         * @desc  初始化数据
	         * @author user
	         */
			function initData(){
				v_cfsexceptioId = '<ctp:out name="id"/>';
					modifyURL = '<ctp:url href="cfsexceptionmain.flowc" flowActionName="querycfsexceptiodetail"/>';
					   ctp.data.getJSONA({
							url:modifyURL,
							reqData:{"language":"zh_CN","id":v_cfsexceptioId},
							success:function(data){
								modifyData = data;
								v_cfsexceptioId = modifyData.id;
								if(modifyData && modifyData.retCode == "0"){
									//document.getElementById("stackValue").value=modifyData.stack;
									jQuery("#stackValue").text(modifyData.stack);
									var areas = document.getElementById('textarea') ;
									makeExpandingArea(areas);
								}
							}
					});
			}


			

			/*
	         * @method goBack
	         * @desc 点击返回按钮
	         * @author user
	         */
			function goBack(){
				history.go(-1);
			}
						
        </script>
        <script type="text/javascript">
        
			function makeExpandingArea(container) {
			  var area = document.getElementsByTagName('textarea')[0] ;
			  var span = document.getElementsByTagName('span')[0] ;
			  if (area.addEventListener) {
			   area.addEventListener('input', function() {
			     span.textContent = area.value;
			   }, false);
			   span.textContent = area.value;
			 } else if (area.attachEvent) {
			  area.attachEvent('onpropertychange', function() {
			    var html = area.value.replace(/\n/g,'<br/>');
			    span.innerText = html; 
			  });
			  var html = area.value.replace(/\n/g,'<br/>');
			  span.innerText = html;
			}
			container.className += "active";
			}
			jQuery(function(){
				initData();
			});
			
		</script>
		<script type='text/javascript' kind='notUI'>
			var formValidator = new ctp.validator({id:"formValidator"
        	});//验证框架
		</script>
       
    <body>
    	<div><input type="button" value="返回" onclick="goBack()" style="position:fixed;right:0;" ></input></div>
    	<div class="expandingArea " id="textarea">
		  <pre><span id="stackValue"></span><br/></pre>
		</div>
        
    </body>
</html>
